package com.fujimana.rockincat.restree.init.method;

import java.lang.annotation.Annotation;

import com.fujimana.rockincat.restree.init.Item;

public class MethodItem implements Item {
	private Class<? extends Annotation> target;
	private String method;
	
	@SuppressWarnings("unchecked")
	MethodItem(Class<?> target, String method) {
		this.method = method;
		this.target = (Class<? extends Annotation>) target;
	}

	@Override
	public String getType() {
		return MethodItem.class.getName();
	}

	public String getMethod() {
		return this.method;
	}
	
	public Class<? extends Annotation> getClazz() {
		return this.target;
	}

}
